home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000073_news@columbia.edu _Sat Feb 24 02:26:51 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id CAA12964 for <kermit.misc@watsun>; Sat, 24 Feb 1996 02:26:50 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id CAA19702 for kermit.misc@watsun; Sat, 24 Feb 1996 02:26:47 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!news.mathworks.com!solaris.cc.vt.edu!csugrad.cs.vt.edu!csugrad.cs.vt.edu!not-for-mail
  5. From: haggerty@csugrad.cs.vt.edu (Pete-O-Rama)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: C-Kermit, UNIX and term variables
  8. Date: 23 Feb 1996 16:04:24 -0500
  9. Organization: Virginia Tech Computer Science Dept, Blacksburg, VA
  10. Lines: 26
  11. Message-ID: <4gla4o$rp6@csugrad.cs.vt.edu>
  12. NNTP-Posting-Host: csugrad.cs.vt.edu
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. I have been working on a script that uses expect (a program to automate 
  16. processes that expect interactive input from a human user) to automate a
  17. dial up process.  The c-shell script calls a expect script which spawns
  18. the kermit process that then calls and has the expect script give it 
  19. commands.
  20.  
  21. The whole process works find when it is run from the command line (by
  22. invoking the name of the c-shell script) (both in the background and
  23. in the foreground).  It also runs fine when run with the exec command.
  24. The only time that it does not work is when it is run from cron.
  25. Since exec passes the process the environment variables and cron does
  26. not I can only assume that C-Kermit is missing some variable.
  27.  
  28. In the expect script I have declared several environment variables but
  29. apparently they are not either not correct (although they are copied
  30. from the output of the set command from the shell) or not the right
  31. variables.  What variables does C-Kermit look for?  Has anyone run
  32. across this problem before?  Is there another place that I might look
  33. for answers?
  34.  
  35. Thanks,
  36.  
  37. Peter
  38. haggerty@scholar.lib.vt.edu
  39.  
  40.